Making Efficient Reputation-Aware Decisions in Multiagent Systems