Multisite performance is very poor. This change set adds a setting for hosts, and caches the array of hosts after it runs the first time.

Actual code changes are at line 49, and lines 136-153.