Concurrency issues with setting size of last packet fixed in cache.py.