Efficient task-based intermittent computing leveraging SRAM data retention | Synapse