Can you move that to Doctrine\ORM\Cache\Persisters\Persister instead?