Thousands of crack sentences could be reduced