Main memory is much faster than mass storage devices like hard disk drives or optical discs, but is usually volatile, meaning that it does not retain its contents (instructions or data) in the absence of power, and is much more expensive for a given capacity than is most mass storage.