You need to use `BytesValues.scratch` instead of allocating a spare here in order for `copyShared` or `currentValueHash` to work correctly.