The immunization package can do this for you by changing the channel cache "discardNotGiven". See instructions below.