Further optimize file descriptor exclusion.