When the mosfet turns off, this gets discharged through a diode into the supercap. It's surprisingly difficult to find a Schottky diode with a low leakage current, and once a again the part I chose ...