Precompile expressions

Fixes #156