Some optimalizations on the C server.