Use a middleware to set the current POC one time per request, and avoid having to look up the stack for the current request in 'get_current_poc'.