Affine parametrization of the dark sector: Constraints from WMAP5 and SDSS