Text this: Optimal group sequential hypothesis testing for exponential families of distributions