Is the brain affected in diabetes mellitus?

In diabetes mellitus type 1 or 2 is the brain affected? And if it is, then why? I remember from biochemistry that the brain is an insulin independent tissue.