private static synchronized void removeSearch(Search search) {
   allsearches.remove(search.subject);
   searchhashes.remove(search.hashCode());
 }
 private static synchronized void storeSearch(Search search) {
   allsearches.put(search.getSubject(), search);
   searchhashes.put(search.hashCode(), search);
 }