get value of key from ram