Self-supervised optimization of random material microstructures in the small-data regime