BZ962: Refactored ir2scope for efficency improvements
BZ962: Complimantary fix to scope2IR
BZ962 Remove cache to simplify optimization