Optimize reflective API calls