AI performance optimization