A Sidecar Object for the Optimized Communication Between Edge and Cloud in Internet of Things Applications