A Novel STT-RAM-Based Hybrid Cache for Intermittently Powered Processors in IoT Devices