fixing imperformant (local) variable scoping, part 1
fixing imperformant (local) variable scoping, part 2
Merge branch 'v0.10.x_bugfix' of github.com:integrity-tf/integrity into v0.10.x_bugfix
further attempts at optimizing variable scoping, using caching this time