replace 'size' with 'unencrypted_size' if encryption is enabled