HHH-8682 org.hibernate.engine.spi.EntityKey consumes a lot of memory