Optimized object manager handling in otrs.DeleteCache.pl and otrs.CheckDB.pl.