Implemented a micro optimization in the checksum algorithm