belive: Avoid duplicate map lookups when calculating the liveness of a node in a...