Recycling queries in PCPs and in linearity tests