Stop getting EMFILE errors! Open only as many files as the operating system supports.