Dealing with a huge count of open files