Avoid Doctrine\Listener::getSubscribedEvents() call on each page where doctrine is active