Alternative to opening/closing socket on every query

Haven't done a proper A/B test, but I believe the EV3 unit was crashing hard when polling sensors rapidly in a tight loop. Not making a bunch of sys-calls every 50ms should help.