Build a flexible datastore in CIFAR10.