Using dict to keep lru