Latency-optimized distributed storage for blockchain in IoT network