Engine performance optimization