Why do you want first store data in unencrypted form, and when encrypt them? Data can be changed between steps. Write whatever you write in .tres now into encrypted file directly.
If you want to encrypt existing saves read .tres content into
var, and save content into a new encrypted file.