My app uses a nested gallery in order to group items by category. The issue I'm having is that each time the user edit a record the nested gallery reloads. This takes time and makes the app seem broken and slow.

More info
The app is made in PowerApps for Teams.
The main gallery is named Gallery1 and has items:
GroupBy(localAnsCollection, "localQuestionCategory", "GrpByCategory")
The nested gallery SubGallery has items:
ThisItem.GrpByCategory
Inside SubGallery I have placed buttons that patch the source localAnsCollection. Each time a button is pressed the app execute a lookup-function and a patch-function on the source:
If(
Text(ThisItem.localAnswerEK) = "OK",
Patch(
localAnsCollection,
ThisItem,
{
localAnswerEK: LookUp(
Choices(ThisItem.localAnswerEK),
Text(Value) = "IR"
).Value
}
),
...
)
The app is made to fill checklists/Check-forms and the collection localAnsCollection is deleted after the user exit the current view.
I have tried to find out why it behaves badly. It seems like it's not the process above (looking and patching) that takes a lot of time, but reloading/reordering the galleries with their updated records. Any suggestions to fix this?
I don't need the records in my collection to be updated immediately after a button is pressed, but the button texts must change. Is there any way to store data in each button instance in the gallery and not patch the source until the user exit the current view?