Implement automatic expiry.
Changed cache strategy to simple LRU or FIFO switch.