In mem_hash, we are iterating over the individual bytes of the key, so make sure all of it is initialized.