Framework: How to buffer consecutive data

Exactly,
My dataloader is doing : 1 -read history (readSyncFile), 2- read fresh data(fetch), 3-aggregate to history, 4- write history (writeSyncFile), 5- provides history to the app (standard output).
What do you mean by my own cache ? A ./cache directory outside of src/data?
Will this simplify my pathname variation problem ?

Thanks

Alain