A bit optimization