* This will cleanup the locks after each request * Move check for enabled share api to the middleware