Support immutable cloning, and make use of it when retrieving entities from cache.