If it is cooked, then I would still use it - Botchulism is killed by heat

If you are worried though, you can use normal sugar or golden syrup, a bit of malt and brown sugar would work too

HTH