Perfomance fix, and API

should fix https://github.com/feross/bittorrent-dht/issues/42