Encrypting NVS esp32

Hi…
I would like to know if it is possible to do the following thingg

1- Creating a fw init.bin for reading a folder with some info and writing the NVS in the esp32-
2-once done that upload a new fw final.bin(with a modified bootloader) for encrypting the flash and the NVS partition…

in this way in memory i should have the final fw and flash and nvs encrypted …

Makes sense ?

Please let me know

thanks