Trying to move the initial set of the diff to the if block that checks if we already stored a diff.