Optimize anyOf. Stop after first matched schema.