Btw, a simple `wire.peerPieces.length === torrent.pieces.length` check before anything else could eliminate every checks until the peer has the last piece.