Push query string into proxy()
Don't fiddle with "connection" header
Close curl handle at the end

Closing it directly after the curl_exec() call seemed to be causing some delay.
Filter OUT accept-encoding header on request

Works around trouble with gzip encoded results from twitter.