Hello, the "gunk" you are describing is a dried out mucus that comes from the evaporation of the moisture while you sleep.
If you are also a snorer, you may have a condition called sleep apnea
. These patients often have the same dried throat in the am. Drinking water, sleeping with a humidifier
may help. If you have sleep problems with witnessed stoppages of your breathing, see your doctor.