Minor arithmetic optimization