Thanks gfvalvo for your reply.
I was also thinking of just using the EEPROM solution but I don't want to change too much on the concept to avoid other issues arising.
Therefore a search for using the same approached based on other libraries.
The file editing concept can't be lost by stopping with the SPIFFS library.