Internalizing the Memoizer (was exposed for testing purposes).