Use hash rather than full sexp for cache key to significantly reduce mem...

...ory usage.