Wrap process_queries with context.push_memory_pool