I had a 26' sailboat with an ice box years ago. When we would go out for extended stays I would put 8-10 bags of ice in the bottom the day before I would plan on bringing stuff on board. This gave the ice time to bring the temperature down.
I also made a foam cover that fitted inside the ice box so as to reduce the area being cooled.
When bringing the needed goods on board I would put the items to be kept cold under the foam cover and others items on top of the cover. We were able to stay out for up to ten days at times and not have to replace the ice, but take on ice for drinks every so often. At the end of ten days we would still have a few bags of ice left over.
This took place in Florida usually in the late spring and early fall.
Good Luck,
El Sea,
1976' Thompson 44
Suite 44
St Petersburg, Fl