Thanks a lot! @oxinabox ntuple is indeed very fast. I see almost no performance cost. Problem solved! Thanks a bunch!
ntuple