...
Our solution was to replace the Integer object keyed map with a String[], indexed by the entity value. The array grows dynamically on initialization to accommodate existing (and new) entity values. Though sparsely populated, it is the a faster implementation for resolving an entity String value since now it is just an index into an array. Now No new Java objects are created during normal processing of entity replacement.
...