agent performance optimization