Caching Data in memory