improve performance as registry does not cache the em for one class...
improve performance as isInIdentityMap is expensive
improve performance by removing a call to isInIdentityMap
Fix regression from previous optimisation