AI-driven performance optimization