Adding memoize to the repository