encrypt with in-memory nonce
You can't check chapter markers or frame counts because they are encrypted.You can't usually partially decrypt a file either.
Every time you want to read some data off flash, you read it then immediately decrypt it. Any time you want to write data to flash, you decrypt it first. Checking chapter markers or frame counts will be the same as before as long as you decrypt those bytes immediately after reading them from flash.