inmemory_compute_cachehash: compute a hash vector when there is no cached hash Usage ------- inmemory_compute_cachehash