Robust implementation of a local cache using google collections.