Compute checksums of segments and store them in the local database.