Caching of objects