Note xlat caching
Ensure if / elsif have the right filename and line fields
Pre-compile xlat's in conditions, too
Cache CONF_ITEM in the condition
Precompile existence checks, too.

if ("%{expr: 1 + 2}") ...