build: apply_profile: use new var 'speed' if possible, defaulting to 6