Knowledge Base Article
There are certain guidelines which should be followed while routing data into flash to maximize the efficiency of both Flash and RAM resources.
Plenty of Flash - Efficient usage of RAM
Efficient usage of Flash
For e.g. if 20 bytes of data has to be written in flash and plenty of flash is available, then while writing these data bytes pass byte count as 64 but while reading read only 20 bytes of data.