Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Yes. As I understand you want to ensure correctness of your data by storing a hash but are worried about SHA2's worse performance vs. MD5's worse security. My answer is that 1) MD5 is probably secure enough 2) you could instead use Skein or BLAKE. I did not care about the possibility of an attacker simply changing the stored hash which did not seem to be your concern.