Optimized blockchain storage