Data structure switching