Using restricted pointer for dictionary operations