I rarely repitch a cake, since I like to use a variery of yeasts. my process is as follows:
1. make a starter
2. pitch starter to the current batch, reserving a small amount in the starter flask
3. Add starter wort and ferment as a usual starter.
4. cold crash, decant once.
5. swirl up remaining starter and pour into a sanitized perform tube
6. cold crash and decant starter tube
7. repeat steps 5 and 6 til tube is 2/3 full of sediment, or until starter is gone.
8. cap and label with strain name and ferment date.
9. refrigerate no more than 14 months.
10. return to step 1 when it's time to use this strain again.
I used to save 2 vials of sediment, until I realized that I was just ending up with more vials of old yeast. When its time to do a new batch I begin my starter monday evening before a brew saturday. Friday I go buy my grains. If the starter shows no signs of life, I'll reboil the starter media (to kill any bacteria I accidentally ranched) and repitch with a fresh sample I purchased along with the grains. I almost did this once. but when I brought the grains home Friday evening the starter was bubbling away merilly.