do not create more threads than there are bytes to scan