Keep just the sums' difference instead of two sums

Another optimization: keep just the sums' difference instead of two sums.