rename to: memoizingGlobalFn