An efficient optionally thread safe LRU Cache