Can `hashes` be a vector of `SafeHash` to avoid this transmute?