We have a lot of LockMode}}s and we load an {{EntityLoader per LockMode which consumes quite a lot of memory.
We should lazy load them so that we don't create objects for all the {{LockMode}}s even if they are not used by the application.