Consolidate checksum code in shared helper iterator.