Optimizing behavioral health