Limit the number of entries in the cache.  Closes #156