An alterative version of Multiline filter which implements LRU cache with TTL and Max Size settings.