How to optimally parametrize deviations from general relativity in the evolution of cosmological perturbations