Hi,
Ok, I think the current behavior that you created will cause massive performance hit if you stat using it on big meshes. You would be better storing references of UV indexes against temperatures and only adjust the one you need to change, in your case, this means that ALL uvs are scanned for ALL changes, that 99% do not apply.
But anyway here's a custom action for this. If you are having trouble making it work, let me know.
Bye,
Jean