Why are you looping over one array and checking another? Moreover, this code can be reduced to
`wire.isSeeder = wire.peerPieces.every(function (p) { return p; });`
Also, what about caching?