Move getDirty out of timestamp check.