The defendant was caught with almost 600 pictures of child sexual abuse on his phone, some showing the rape of children as young as four