Increased POOL_SIZE to 2048, added flush_dict, changed first element to be malloced in mempool.