Speedup udf choice text only migration

Instead of blindly saving every plot and tree with a UDF, only save those
which actually require that a value be changed.