At the moment we use this code only in one place. I don't think optimizations like caching the results is really important right now.