Memoize the fragments