Memoize encoder hash lookup.