Final memoized version (+3 squashed commits)
Squashed commits:
[8135042] pre-computed 0.006ms
[d7e1670] non-memoized - 266 ms
[d19867b] memorised - 0.283 for 2 iterations
Merge commit '31904337f5e123e77b229061e803350d9089c535' into memoized