In general, you need to store some constants and logs on a 4MB flash drive, so how is it better to organize it, try to set up a file system there or work with pages and cells yourself?
For constants, it is better to use separate pages, and store the constants themselves in structures. For logs, a ring buffer is more convenient, with the ability to overwrite the oldest information (1 page).