Swap data between traces

I have a multi page app. You select a directory (equivalent to an instrument) on the first page in a dropdown. This then loads a dataframe into memory as a global (only to be used by one person at a time so no damage done) and opens the second page where there is a multi trace graph produced from the dataframe, each trace corresponding to a sample type. The dataset is quite large so it takes some time to produce the plot. Users can then select data and shift it between traces. This is done by capturing the selectedData, using information from the customdata to change it in the dataframe, then replotting the updated data returning the figure. However it means that for small changes (say swapping one data point from the “unknown” type to “standard” type) it redraws the whole figure and takes an age. Is there a way to quickly reassign datapoints from one trace to another?