Optimized object manager handling in Queue.pm.