`keys.length` is calculated on every iteration. Unless you need that this could be a var.