Remove dependence on Serializer in GenerateDeterministicKey