- Simplified instance_dao write concurrency and read concurrency. Now
using semaphore-like mechanism. Sue me.
- Hostname caching in memory to avoid excessive db read/write. Database
also writes hostname cache mainly for the event of service restart (the
in memory cache warms up from database, so not all cache is lost).
Database cache actually expires sooner than in memory cache.