Some properties of Tabledef and Field objects can be relatively expensive to retrieve. User defined properties that can only be accessed via the Properties collection fall into this category. Rather than referencing such properties directly in an inner loop, it is more efficient to assign them to a local variable before entering the loop and then using the variable instead.