After happily replacing the battery in a ten year old phone, six months later it was obsolete due to the 3G network switch off; the device was no longer capable of one of it's primary functions; making and receiving phone calls.
I use an approach with Github Actions where if I need small amounts of persistent data between runs, I use a filesystem based off a fresh branch in the same repository.
That branch is rebased down to $tip so it shares no commits, and the 'database' doesn't affect development in trunk.
Obviously this doesn't work for significant data analysis, but if it's just a question of 'what was the state at the last run' it's cheap and easy.