Improved method caching