Optimize the caching efficiency