New `memoize` utility decorator, further structure to the RPC 2.0 rewrite.