Provide method caching convenience function called util.cachedMethod.