Adds option for specifying subsampling for stored vectors.