Optimized object manager handling in State.pm.