perf(scope): misc optimizations

Closes #610
feat(scope): add scope digest stat collection

Closes #609