Upsert more efficiently in process_historical_data