Keep as Much Data Local as Possible in the IoT (Sorry, Cloud)