fix caching for registry cache items