Faster hash for memoizing preparedData