Improve fix/cloth-stockpile performance by 30% by reducing garbage.
Nuke the third exit(1) and change building caching code to make more sense.
Binsearch in units.active can't possibly work, ever.