Improving security and efficiency in IoT data management using BC based solutions