As @liveh2o said, "memoize" is the correct term.