Made searching faster when using remote sql server.