Keep a tainted state for each item so that we don't persist to disk unmodified items