Get rid of 2 redundant foreach loops, and make each torrent update itself in a background thread.