Twice is fine. More than twice, consider using an array. If you keep your code short, it's usually more efficient and easier to maintain.