Speed up/fix the constant folder.