Currently we copy data into a new buffer before passing it into the hasher, we can just hash the data directly. Internal change only, no external change. Fix: #2917