Properties of Bacterial Endophytes Leading to Maximized Host Fitness