Make API Requests Thread-Safe