When humans offload most of who we are onto handheld devices, the fifth amendment will not be necessary, just take the phone and query it for thought histories of the guilty, er, suspect.
Torturing a suspect for self incriminating details: not ok. Breaking encryption on a phone, bypassing security password lockouts and accessing memory history: ok!