More performant way to retrieve last action