The UK law on prosecuting accomplices seems to be set up to avoid exactly these kind of scenarios:
Quote:There may be occasions when it may be appropriate not to bring proceedings against an accomplice even where there is sufficient evidence. For example, the offence might be serious but the involvement of the accomplice may be minor.Source: https://www.cps.gov.uk/legal/a_to_c/accomplices/