Opt constant folding