Improved caching technique