Cocaine with a street value of £500,000 was found in a car which sped past on a hard shoulder.