You don't always need to play a hand of 5 cards to "play" a program, just the cards needed to fulfill the requirements of the hand. For example two-pair requires 4 cards, 2 of a matching rank and 2 of a different matching rank. Three of a kind requires you to play 3 cards from your hand: 3 cards all of the matching rank.
To play the pairing program you play 2 cards of the same rank (a pair) and then draw 3 cards. Then, if you have less than 7 cards in your hand you draw up to 7. To play the flush cache program you play 5 cards that all have the same suit, shuffle your cache into your deck, then draw back up to 7 cards if needed.
Hope that helps!