Historian virtual tags retiring

I have a set of values that I am storing through scripting using system.tag.storeTagHistory calls. These tags exist but without history enabled, I store the history using a script as the value comes from another data source and is processed in batches.

I've noticed that my tags are getting retired occasionally, which is normally fine but in some cases the value doesn't change often so there will be a gap of time where the querying the historian doesn't think the tag exists as all references for the tag are retired.

The most likely culprit here seems to be the fact that the tags exist without history enabled, but I can't find clear documentation on the expected behavior here.

Has anyone encountered similar? My first though is to just write a new value into the historian occasionally to keep it "fresh" but that seems like a workaround.

Why are you using the historian for this instead of just making a dedicated table?

The data/tags we’re processing in this way are from a small subset of equipment. For the rest of the equipment we have direct tag values that we can historize normally. By historizing this data in the same way, consistent visualization/processing can be applied.