fix #42: avoid usage of non-precomputed plan
fix #43: add optional precomputation at construct time