Avoid doing a lot of computation when we have multiple ranges and