When creating multiple client with different codec, only the first registered codec will be used when using the in-memory KV.
This has caused me multiple issues while trying to use another in-memory store in loki.
see https://github.com/grafana/loki/blob/main/vendor/github.com/grafana/dskit/kv/client.go#L140-L142