use pickle for triplet persistence