reduce the number of opened files