Search for file type: improve performance