FLASH endurance is a function of erase/program cycles. what you can do is to dedicate an entire or sector
(or part of it) to store your markers, last entry is the one that is honored.
only if your marker table is full you have to erase that sector.
this greatly enhances your FLASH's lifetime. works for E2PROM emulation too.
There are some caveats though... if you need to erase, you should consider what happens if that thing resets or power fails
just before a valid marker could be written.
If an invalid marker turns your device into a paperweight, you might consider some form of double buffering.
Cheers, Roger