Complex sentence: Caputo is initially portrayed as a sleazy character who believes in keeping the inmates dehumanized and who masturbates in his office immediately after his first encounter with Piper, but it becomes clear that he genuinely seeks to rehabilitate the inmates and run the prison properly and ethically.
Split into simpler sentences: Caputo is initially portrayed as a sleazy character who believes in keeping the inmates dehumanized and who masturbates in his office immediately after his first encounter with Piper. Later, it becomes clear that he genuinely seeks to rehabilitate the inmates and run the prison properly and ethically.