Just how costly are specialized metabolites? Maybe not very - this opinion article suggests that "secondary metabolites serve auxiliary roles, including functions associated with primary metabolism. ..The costs of plant chemical defense can be offset by multifunctional biosynthesis and the optimization of primary metabolism. These additional benefits may negate the trade-off between primary and secondary metabolism,"
Via Mary Williams