Optimized object manager handling in Cache.pm.