Added some more tests for the cache
Added an interval based remove of expired items
Added a used field instead of linear sum on each lookup