Since the ciphertext round-trips through the browser, the route forwards whatever m.metadata.encrypted the client sends straight to the provider. It is opaque to you, but I would still check it is a string under a size cap, or keep it server-side keyed by message id. That also covers your point about stored chats losing it, because the history and the ciphertext live in one place.