Variables based where clauses - avoid large field in (..) queries

Hey,
I’m using variables based where clauses.
however - in case of all selected I would like to not use the filter at all, as the query translated into large id in (…) filter.
Is there a way to not use the filter in case of ‘all’ selected?
Something like:

WHERE {client_id} IS 'All' OR cte.client_id = {client_id}

in the templating setup, you can choose to include an all option or not. Have you tried untoggling that button?