KEEP: Secure and Efficient Communication for Distributed IoT Devices