Dirty tracking implementation