In one of the darkest, most popular episodes of the sci-fi television series “Black Mirror,” writer Jesse Armstrong imagines a world in which humans can record every single memory and experience they have, using a small device implanted in their skulls. The ability to play back memories as easily as rewinding a VCR, which at first seems useful, is quickly revealed to have horrifying effects on the characters’ relationships. The real nightmare of “The Entire History of You” is not only that there is no expectation of privacy, but that there is no potential for self-delusion.

Even more terrifying? Tom Gruber, the co-founder of Siri and an Apple executive, has a similar vision for the future.

Speaking onstage at the TED 2017 conference in Vancouver, Canada, Gruber illustrated his vision for a world in which technology records and remembers every event in our lives—the names of every person we meet, all the places we have been, and all of our life events. “I believe A.I. will make personal memory enhancement a reality. I think it’s inevitable,” he said onstage this week, arguing that smart computers could be used to reinforce existing human capacity for memory.

Gruber’s not the first tech entrepreneur to suggest that some kind of brain-computer interface is the next frontier for Silicon Valley: Elon Musk’s new “telepathy” start-up, Neuralink, is developing a “neural lace” technology that would involve “implanting tiny brain electrodes that may one day upload and download thoughts.” Facebook has also hinted that it is working on similar sorts of technology that could help people with disabilities. (“What if you could type directly from your brain?” Regina Dugan, who leads Facebook’s secretive hardware development initiative, mused at the company’s developers conference last week.)

Still, there’s a long way to go when it comes to such technologies: the surgical procedures involved are dangerous, and the privacy implications are incredibly serious. “We get to choose what is and is not recalled and retained,” Gruber said onstage. “It's absolutely essential that this be kept very secure.” While this kind of technology could ostensibly benefit anyone, Gruber specifically envisions it helping people with diseases like dementia. “It’s the difference between a life of isolation and one of dignity and connection,” he said.