Current implementation clears full map when maxEntries reached. jackson-dataformat-csv has its own separate LRUMap[1] and it only evicts the eldest entry when you add a new entry after the maxEntries is reached. Would it be possible to have jackson-databind LRUMap use similar logic? The change would require LRUMap to subclass LinkedHashMap.
[1] https://github.com/FasterXML/jackson-dataformats-text/blob/2.14/csv/src/main/java/com/fasterxml/jackson/dataformat/csv/impl/LRUMap.java