Note for future work: we need to implement an unsafe serializer in cosmian_crypto_core to avoid this cloning (it appears everywhere in the KMS). Originally posted by @tbrezot in https://github.com/Cosmian/kms/pull/542#discussion_r2390950084