The best solution is to store the values to the database for contents, immediately after doing the opt-in, using the person code created by the opt-in question, as key for the database. This might look like this:
$person = value('OI01'); // Person code from the opt-in question
dbStore('D'.$person, [
'AB01' => value('AB01'),
'age' => value('TX01_01')
]);
In the subsequent questionnaires, you can then easily access that data.
$person = caseSerial();
$data = dbRetrieve('D'.$person);
debug($data);