Complex jobs ‘may protect memory’