Speed up domain search with many TLDs

Change-Id: I05b3c5090cb9ba6621aa7383b387fd686d6dc23a