Revision 2

Read data files once only
extract only rows that satisfy the threshold