New study reveals perfect amount of sleep for middle-aged brains