1. A memory device comprising: a first electrode and a second electrode; a memory element and a buffer layer located between and electrically coupled to the first and the second electrodes, the memory element comprising one or more metal oxygen compounds; and the buffer layer comprising at least one of an oxide and a nitride.