API performance optimization