Ray Cook wins SLM race at Bama Bash