In many cases the ByteCodeProvider cache is no longer needed after boot; currently we clear them on SessionFactory close, but we should do it also at end of bootstrap.