A data controller which is a public authority is exempt from —
(a) the Second, Third, Fourth and Eighth Data Protection Principles;
(b) sections 34, 35, 40, 41 and 45; and
(c) Part 5 in respect of blocking personal data, to the extent to which the application of such provisions would be likely to prejudice any of the matters specified in this section;
(d) if the processing of personal data is required for the purposes of —
(i) the prevention or detection of crime,
(ii) the apprehension or prosecution of offenders, or
(iii) the assessment or collection of any tax, duty or any imposition of a similar nature.