Spin glass polynomial identities from entropic constraints