improve moments index performance