Clean up states
Templatize memcache package