A racist Middlesbrough drug dealer caught with £21k of cocaine told a court he had no memory of the abuse he inflicted on police officers.