Cache filtering of data