bridgedesc: yaks for persistent storage
I found myself wanting to make space to add more code. This is part of that. When we doing caching, the new process_document
function will have multiple call sites.
Assigning @nickm as reviewer since he reviewed the MR where I introduced this stuff.