To elaborate, the way to cache a static method is to take out the @staticmethod decorator, add the @cache_function decorator at the top, add any cache dependencies at the bottom and then do something like "getTypes = staticmethod(getTypes)", which does the same thing as the staticmethod decorator.