Revert "Try to use a local pool to avoid huge memory consumption"

This reverts commit e57d875e0abcd95e0fc06690c269e387cd2aa61d.