CPUSensors optimizations, refactoring (work in progress)