I strongly recommend you don't follow the plan you outlined, bringing cold cooked meat along on your hike to eat after a day or two. You almost certainly can not achieve this while following food safety guidelines. Sometimes you get away with taking risks with food safety. Other times you will make yourself extremely ill. In the case of a multi-day wilderness hike, the worst possible consequences of severe illness are much worse than in the safety of civilization. In a worst case scenario, you could have severe diarrhea and vomiting, which causes dehydration, which makes you weak, shaky and dizzy. Now imagine trying to hike all the way back to the trailhead in this weakened state, while also having to stop frequently to again vomit and/or defecate. Or trying to call for emergency evacuation, which may or may not be possible due to limited phone service, and then wait how ever many hours for emergency assistance to reach you.
There are a few things you could do to improve your plan and make it less risky. Whether you can actually stay within food safety guidelines is impossible to determine without knowing all the details and doing some tests (more on that below). But you will certainly be safer if you take some of the precautions below, than if you follow your original plan of eating unrefrigerated meat.
Look up the predicted temperature range for the time and place of your hike. This will have a huge effect on how long it takes meat to spoil. If it's going to be hot summer weather, I wouldn't try it. If it will be cool spring / fall temperatures, I suggest doing a test run, as described below. In cold winter weather, you have a pretty decent chance of keeping your food safe, although I might still do a test run for safety. If the temperature won't get above 40° F / 4.4° C, frozen meat should stay safe as long as you don't store your food bag in the sun, next to the fire, or in your tent with you overnight.
Unless it's below freezing all day, forget about the "or two" part of "a day or two." One day is possible. Two days is asking for food poisoning.
Fully cook the meat ahead of time. That means no rare steaks (it wouldn't be rare anymore by the time you reheated it, so not too much of a loss there).
Freeze the cooked meat. Frozen meat will take longer to warm up to "danger zone" temperatures than unfrozen meat.
With frozen meat, you need a plan for how you will safely thaw the frozen meat if it's still frozen at the time you plan to reheat it. Use thinner cuts, but package them together in a stack. Stacking them keeps the surface area low, which will slow the thawing process during travel. When you want to reheat them, separate the stack and thaw them together. Start with several thin cuts, wrap them individually in plastic wrap, stack them while they're still unfrozen so they can kind of squish together a bit, to avoid air pockets, place the stack in a good quality freezer bag and freeze it. That way the whole block has the least surface area, so it stays frozen longest, but you can separate the individual pieces when it's time to cook them. (If you have a vacuum sealer, use that instead of plastic wrap and bags.)
Keep it frozen while you travel from your home to the trailhead. If you have an actual freezer in your vehicle, use that. If not, use a good cooler and lots of ice.
Insulate the frozen meat. You can get various lightweight insulated envelopes that are intended for mailing food and medicine. I found a lot of inexpensive options by searching "lightweight insulated envelope."
(image source)
Don't eat the meat cold. Re-heat it to the safe reheating temperature for leftovers, 165° F or 73.4° C.
Keep in mind it will probably be partially frozen. One way is to simmer it in a sauce. To keep your pack weight down, I recommend bringing your sauce ingredients in a dry form. Or, you could pack the meat in sous vide bags, and reheat it in simmering water.
Do a test run at as close to real-world conditions as you can manage, then measure the temperature of your meat. If it stayed below 40° F / 4.4° C, you have a reasonable chance of not poisoning yourself on your hike.
Look up the expected day and night temperatures for the first day of your hike. Find a location in or near your home that has similar temperatures. Eg, if the expected weather for your hike is hotter than the outdoor temperatures now where you live, maybe you have an unheated garage, or a poorly insulated mudroom that achieves a similar range. Or maybe you have a bored friend who lives at a different altitude and/or latitude who could run the test for you. Or maybe you can put the meat in a cooler with a little bit of ice and a digital thermometer that you can monitor from outside the cooler.
Cook your meat, package it, freeze it, and wrap it in insulation, exactly as you plan to do on your hike.
Leave it in your simulated hike environment for as long as you plan on waiting before you eat it. Don't forget to simulate the travel time from your home to the trailhead, in whatever cooler you plan to use. (As I mentioned above, two days is probably not going to work, but feel free to test it, and please do let me know if I'm wrong about that.)
Open the package and take its temperature at multiple points. If all the meat is below 40° F / 4.4° C, congrats, it's safe to eat.
If you're not going to bring a meat thermometer on your trip, familiarize yourself with what the meat looks and feels like while still safe. Poke it, and notice how hard or soft it is. Feel the outside of the package - is it still icy cold, or merely chilly? Leave some of the meat out at room temperature until it's not safe anymore. Compare how it looks and feels once unsafe. Consider whether you will be able to tell the difference out on the trail.
(Optional) Practice cooking some of the safe meat (not the stuff you left out until it wasn't safe anymore in step 5) in the same way you plan to cook it on the trail. Eat it. Is it good? Was it worth all the effort you put into it, and the extra weight compared to a dehydrated meal?
If your wrapping and insulation technique works well in the expected temperatures, you could actually bring raw meat and cook it on the trail. I would only try this if your test run stayed well within the safe temperature range; I wouldn't try this if it got close to the upper end of the range. The obvious advantage is that it would taste a lot better than re-heated pre-cooked meat. The disadvantage is that you handle raw meat on the trail, and safe food handling and cleanup is much more difficult without hot running water to wash your hands and cutting board. Plus you have the risk of raw meat juice leaking onto your other stuff. It's doable, but you need to plan ahead. Making a beef stew can work pretty well - bring a single, sealed package of pre-cut chunks of beef, cut it open and squeeze the still partially frozen lump and any meat juices into a simmering stewpot. Put the packaging in your trash bag without touching any of your other stuff, then rinse and sanitize your hands and the knife you used to cut open the package.
Prepare for the possibility that despite all your precautions, your meat simply gets warmer than you expected, and it just doesn't seem safe to eat. If that happens:
- Don't talk yourself into eating it if you think it's unsafe. Better to go hungry than get sick (you'd lose all the calories anyway).
- Figure out how you will re-distribute your remaining food after discarding this meal. It's probably better to run a bit low at the end of the trip than skip an entire meal right at the beginning, but you also don't want to completely run out of food before the end.
- How will you dispose of the unsafe meat? You probably want to unwrap the meat and bury it far away from your camp site. Make sure you know whether you're allowed to do that in this area. If you have to pack it out, it will be very stinky by the end of your 5-day trip. Pack the wrappings out in your trash bag. Be sure to wash and sanitize your hands immediately afterwards.
My personal opinion is, in most circumstances, it won't be worth the hassle that comes with doing it safely, and it's certainly not worth the risk of doing it un-safely. But, I do see the appeal. If you can pull it off safely, real meat can be a huge treat. You can find some middle ground by using smoked or otherwise partially preserved meats, such as bacon, hot dogs, or ham. You should still keep them cold as you would for fresh meat, but the nitrates in them will at least slow bacterial growth, so you have some margin for error. Summer sausage is also a nice option; it's shelf stable but not as dry as beef jerky, which makes it heavier but it seems more like "real" food, so it's a nice treat. And of course you can find a variety of canned meats, as well as chicken, tuna and salmon in foil packets. Those are still a treat compared to dried foods; they taste better, but they weigh a lot more.