People with diabetes who undergo heart surgery have a greater risk of experiencing a stroke and developing cognitive functioning problems than people without diabetes who undergo heart surgery. There may be a connection between disturbances in glucose metabolism, endothelial dysfunction, and poor neurological outcomes after heart surgery. People with diabetes who receive more intensive blood glucose management during and after heart surgery may have better neurological outcomes than people who control their blood glucose levels in a standard way. The purpose of this study is to evaluate the effectiveness of using a traditional method of controlling blood glucose levels versus a tailored, more intensive method of glucose control on neurological outcomes in people with diabetes who are undergoing heart surgery. Researchers will also examine genetic factors that may be associated with insulin resistance and inflammation.