Ex-teacher jailed for child abuse cache