Get most-recent weight-painted vertex?

How to get the most-recent painted vertex in weight paint mode?

I want to create some UI buttons that take the value of a vertex that was just painted and apply certain operations based on that value to other vertices.

I would really like to avoid the approach of storing all the vertices as a snapshot and then looping through to see which one changed.