The 401s are more than likely related to the same problem with connection pooling as the api key gets validated against the database also using ORM Lite.
Mike Sheen Chief Software Engineer Jiwa Financials
If I do answer your question to your satisfaction, please mark it as the post solving the topic so others with the same issue can readily identify the solution