Started using binary search for queries on server