Are you suggesting to use an existing caching system to persist the hashmap? So we would have something like `$documentClass = $classes[Doctrine\Common\Util\ClassUtils::getRealClass($document)];`
Would `$classes` here be made available in the instance (`$e`) of `LifecyleEventArgs` ?