Optimize host assignment for batched downloads (bb#987)