This patch adds a number of asserts to the cache, checking basic assumptions about packets being requests or responses.