did some performance tuning by using read buffer for checksum calculation