This uses an index to quickly look up what pieces are part of a file, and then checks that they are all valid, this should be faster as it is likely that the torrent has more pieces than files (few large files, vs many, many small files)..