gas efficient data structure