Implements mutation reverting on flush when necessary :)