Optimize get object manager mathod