adding potional memcache support for instance urls to avoid cost of multiple sql round trips