Completed TCP search alg optimization