WI-24747 Performance fix: update injected foldings in a single batch operation [CR-IC-6579]
(cherry picked from commit 18c7686)