Hardware-Assisted Data Compression for Energy Minimization in Systems with Embedded Processors