precalc const memory compiles