fix #10: add option to precompute at construct time