The safest technique might be to slowly titrate to lower doses of sugar and caffeine instead of going cold turkey, particularly if you have a long history of sugar and caffeine use. You will probably also need to wait a few weeks from your original baseline before assessing the impact of your new diet. Synapses and more will need to adjust to their new environment.