fixed issues with persistent connections, implemented caching on disk with boost libraries, still having an issue with concurrent connections from the server