Decrease CPU footprint

Open Thibault Cohen requested to merge cpu into main