Adaptive p-value weighting with power optimality | Synapse