Sorry I'm slow on this.  I think if you use base64, you should make sure you are doing a base64 encode/decode in UTF8.  Powershell will default to Unicode 16 which will be huge.  Otherwise, I think that's a good idea.