reduced code duplication by reusing identical filters
attempt to speed up by caching lines from raw data files which may be useful later