formal mechanism for sampled key expansion. add -b to specify expanding level. use multiple get function of fastdict.