cpu-boost: refactor