Move compute from server (ws.py) to pre-processing code (or post-processing in https://github.com/imagepbl/effort-sharing/tree/main/DataExporters)