Use Common.digits in 92.
Precompute chain elements.
Use unboxed arrays.