Create separate stack for sparse_thread_encoder