Value based dirty checking