Fix machines_uri memoization

leader_uri and machines_uri used the same instance variable for memoization.