Making bulk upsert way more efficient for compatibility scores