Adapter to limit cache key size & rescue from nonfatal exceptions