Tag change rate threshold possible?

Is there a way to make it so that if a tag changes it’s rate greater than a set threshold, it can be set to bad quality? This would help with noisy data where it spikes one minute unnaturally (not past an engineer limit) and back down to normal due to a dirty sensor or such. I don’t think there is a built in setting. I think I could make it work via a tag change event script using the values and timestamps and setting the quality of it changed faster than normal, but this would apply to a UDT affecting 1000s of tags, not sure if it would demand a lot of resources.