/// <inheritdoc/> public virtual async Task <byte[]> EncryptSecretAsync(byte[] plaintextBytes, string encryptionKeyId, Dictionary <string, string> encryptionContext) => (await KmsClient.EncryptAsync(new EncryptRequest { KeyId = encryptionKeyId, Plaintext = new MemoryStream(plaintextBytes), EncryptionContext = encryptionContext })).CiphertextBlob.ToArray();