Text this: Energy-efficient memories for wireless sensor networks