Saving Data from a Background Process (setProperty)

Jim (or others who have done this)...

My background process is now working really well. Thanks for the help. I do wish in a Data Field, that (like watch faces and widgets) the 5 min trigger delay would be reset upon the start of a new activity or device power cycle. I don't get why a data field would act differently. The whole point of the 5 minutes is to not overwhelm the device. So this one time reset seems like a good idea.

But, since this isn't available. I need to save the prior data along with a timestamp. Then retrieve that old data (if not too old) while waiting for the 5 min trigger delay to expire.

I could save this data using a setProperty call in the background process that gets the data. Or in the foreground process each time it gets new data.

Any tips on a Best Practice? My idea is to first check for new data. If waiting for the delay, then go look in the saved properties and use that value if its timestamp is < 30 mins.

Thanks!