From coefficients to samples: a new approach to SOS optimization | Synapse