similar issue to JENKINS-47725.
But in blueocean code:
Released in blueocean 1.5.2 and 1.7.2.
merged in master and cherry-pick in branch release/1.5
pr using GuavaCache https://github.com/jenkinsci/blueocean-plugin/pull/1781
definitely +1 for Caffeine
Guava caches with weak keys are less performant than WeakHashMaps on their own (get/set carries more overhead) but they will avoid creating a thread bottleneck for anything but operations on the same key.