ShimShadowDOM: optimize custom selection engine to memorize the search query.