re-use joins if the keys are the same