greatly improved performance of sphere sequence value transformer (by batching the counter retrieval)