Eight components or eighty lines: two ways to keep an agent's secrets