prehashing heuristic