<inp2:ord:UsingCreditCard/> tag allows to determine if payment type selected in the order requires credit card information to be entered. Internally tag is doing 2 to 3 database queries regardless of how much times method is called. When used in grids this created N+1 problem.
- in method create static variable holding all payment types, that require cc entry
- in same way cache primary payment type ID (only when needed)
- use cached info to determine result