I have a light weight wallet or two I use for just the essentials when i am hiking. I have only a house key and car key on my key ring. I clip it on the inside of my backpack so it is near impossible to loose on the trail. You could put it in a plastic z-lock bag and hide it 100 yards up the trail and 10 feet off the trail under a log or rock.
_________________________
Jim M