Add a Google Guava cache in front of the mapping function.