Prevent duplicate API calls