COSM: switched to JSON API and applied keep-alive HTTP connections.