It sounds as if you do this regularly
<i>It’s a batch process</i>
so why not engineer the requirement out? – add a trigger to export the keys of changes to a ‘daily changes’ file or ‘hourly changes’ or whatever, and keep track that way.
once it’s live – lets say a couple of days to develop it. you retire your code. end of problem. everything runs like lightning.