Cooking the sugar helps to thicken the sauce - although it stays thin even when refrigerated. Using milk instead of water will give a thicker sauce.