How do you handle concurrency and multi-threading in your automation scripts to prevent performance bottlenecks for Switch?