Resolve some bottle necks for finding triplets