Remove unnecessary file descriptor creation