1. A resistive random-access memory (RRAM) cell, comprising: a first metal layer comprising a first electrical conductive metal; a second metal layer comprising a second electrical conductive metal; a resistive switching material layer situated between the first metal layer and the second metal layer comprising a switching material that is an electrical insulator; and a first semiconductor layer situated between the resistive switching material layer and the first metal layer comprising a lightly doped semiconductor material.