Create an index in an XML file that contains information about all the documents you want to search. Load the XML at startup and search the XML instead of all the files in your directory. When you find a document that meets your search criteria, allow the user to open that documen (or do whatever you like).