require persisted objects for caching

if an object is not persisted, key_blob is returned as false
and cache fetch is skipped, directly executing block if one
has been given. only applies to method and association caches.