Add constant folding optimization option