Optimize WS Clause.