Micro optimalization of EntityManager::getClassMetadata()