Avoid unncessary checkDirty calls.