The search criteria as we currently implemented them suck. It is probably better to have all criteria piceed together with caching between them. Then it will be much easier to select the appropriate data.