Computing with Memory for Energy-Efficient Robust Systems