Implemented caching for filtered text