added cache clear for each file processed