Be more efficient when listing files