You can encrypt/decrypt your file with efficient way. Also you might be implement you're keyvault system, default using in-memory. It's good for the encrypting or decrypting large file.
Note: It's using custom filestream, when the file saving, its directly saving the disk with kernel notification. It's buffers the memory to disk.