Did you restart the web service to make the changed parameters work accordingly?
I appreciate your approach to look for other solutions like CURL optimisations.
Furtherly:
Learning of your configuration I would like to point at two more articles:
(1) some advice on Apache versus NGINX install
(2) the availabilty of a pre-packaged NC for Rasp out-of-the box effort like NCP
Happy hacking.