arduino webserver fast data logger with or without sd card interface

Hi, I am working on a project that logs data using Arduino Uno at a sampling speed of 50k samples per second and storing data to an SD card. I am done up to this part but now I want to upload this data to a web server so that anyone connected to the server can access the data. But the problem is, I cannot upload data to the server at that much speed. My expectation is at least 20k samples per second, 40k will be good enough. I am using the SD card interface just to ensure no data loss. Can anyone help me with how to solve the problem?

The code I have used for data logging is attached herewith.

AnalogBinLogger.ino (22.4 KB)