Performance improvements to torrent validation.