To save time, why not add the mask so that only the fileextensions you want are returned?  Also, you don't need filedirectories and you possibly don't care if it's a cached fetch.