Option to memoize the tokenization