Minister orders compilation of visitors’ record for jailed terrorists