Modified DoctrineEncryptSubscriber to modify the entity onUpdate only, rather than onPersist as
it is common to make further changes to the entity prior to flushing it.

Added metadata caching for a significant speedup