It can sometimes be beneficial to hoist a variable out of a loop. (See Item 9.)
Because constants don't add state, this Item does not apply to them. (See Item 17.)