Vijay Balasubramanian examines the optimal immune repertoire for bacteria