Optimized server communication

No idea if this is actually optimal, I'm kind of guessing