Run `Editor.checkValid` only after an actual user change

Dear Anki Community,

Thank you very much for the project.

May anyone suggest a way to distinguish whether a field in Editor has been change from its actual value?
Is that only possible using the database and compare with it?

For example, assuming the function is called on every field change which includes its filling/initialization, when Editor.checkValid runs for the first time, a plugin should have a pre-defined flag of a modification activity, retrieve the field’s database data and compare.
If matches, then skip.
If mismatches - toggle the flag and actually continue processing further.

Or… have a counter equal to field number and decrease each function call and when it equals to 0, assume a user changes a value. Haven’t verified that, yet.

I was curious if there’s a faster option to achieve the same. A hook?

Best and kind regards