Applying machine learning to balance performance and stability of high energy density materials