Performance improvement of formatToMultiplier()