It would be great if memoizing all results of a function was possible, i.e. having a `Map` to look up previous results.