This may be a gap in the market:
- permanently-available files are best handled with File::ShareDir::Install and are read-only
- ephemeral ones with File::Temp owned by app-process owner; need not survive a reboot
Your situation is probably closer to ephemeral, both in terms of lifespan, and appropriate file-ownership. But my assumption is you'd want to have the files survive a reboot? This situation is like a file-based, age-limited memoisation. You might consider using Redis also.