Add a memoize function to simplify caching
Add a memoize function to simplify caching

apple/swift-tools-support-core,apple/swift-tools-support-core,apple/swift-tools-support-core,apple/swift-tools-support-core