Encryption and compression options do not take effect

I now have 13 million data, and the total file size is 2.3G when writing to the badger database normally .

Then I enabled the compression option Snappy. After the data is written, the total file size of the database is still 2.3G .

options := badger.DefaultOptions("").WithCompression(options2.Snappy)

And in the case where I enable the encryption option, I can still see the information field of my original data in the ***.sst file.

options := badger.DefaultOptions("")
options.EncryptionKey = []byte("0123456789abcdef")

How should I set it up so that these options can take effect .