If you trim when wet, separate the good trim from the worthless trim. Freeze the good trim immediately, if you plan to make bubble hash (water sieved hashish). It definitely improves yield by enough that the eye can notice. Assuming you sieve some worthwhile amount for all that effort as opposed to 1-2 grams. Just let it build up in freezer until you have 100grams or so, and you'll get 20+ grams of bubble hashish. I toss all the fluffy-airy-buds in too, if any.
if cooking with it, i don't think it matters. you are going to soak it in oil and it will go into solution -- much different than a sieve. Store it in a cool dry place and let it dry out like the harvest does. store liek you would bud -- but i wouldn't waste a boveda pack on it or anything. long-term storage, seal and freeze, sure.
So, depends on how you use the trim.