Type ipv6_addr /// size 1000000 /// timeout 4h /// gc-interval 2h /// .

And generate code. More info can be thought of as a personal research.