We need to keep an inmemory cache to avoid lookups into aliases table. This adds the inmemory state of the cache. Change-Id: Ief2b9bb19e10b46839b9208472dfc3035eb49af3