A man has been jailed after police discovered he was in possession of more than 68,000 indecent pictures and videos of children.