by the way, this approach would result in pretty unusable validations for a system that's been running a long time.
if you are on key 9834750927 and need to iterate through that key generation routing that many times to get you from the starting validation key to the key needed to validate the file, it's going to take a long time.