Iteratively hash rather than building a vec then hashing