optimize async handseal detect algorithm