What if you had query 'a' that changed to 'b' and then back to 'a'. With this logic, it will be considered as "dirty" while it's not. No?