speedup for sparse features