Takes configuration options into account for caching
Implements session based caching for the last seen items