Perform computations on the layer just once
Merge pull request #392 from cmc333333/perf-analysis-recomp

Performance Tweak 4: Pre-computations in Analysis Layer