How smart should a forager be?