I am building a device that is for most of the time in sleep mode. When woken up, I am sending some BLE signals and use a LED. To support the battery I have a 2u2F capacitor. But because my battery is so small and I want the device to have a long runtime I am concerned about the leakage currents of the capacitor. Especially because I would like to put a bigger capacitor than 2u2F into the circuit for supporting the battery.
An idea and question now are: Because I don't need the decoupling capacitor during the sleep mode I wanted to put it on a GPIO and when the device is awake I could switch the GPIO to VCC.
Is this a possibility?