Optimize Scope: avoid repeated calls to .sym.name