We have experimentally improved the temporal contrast of the petawatt J-KAREN-P laser facility. We have investigated how the generation of pre-pulses by post-pulses changes due to the temporal overlap between the stretched pulse and the post-pulse in a chirped-pulse amplification system. We have shown that the time at which the pre-pulse is generated by the post-pulse and its shape are related to the time difference between the stretched main pulse and the post-pulse. With this investigation, we have found and identified the origins of the pre-pulses and have demonstrated the removal of most pre-pulses by eliminating the post-pulse with wedged optics. We have also demonstrated the impact of stretcher optics on the picosecond pedestal. We have realized orders of magnitude enhancement of the pedestal by improving the optical quality of a key component in the stretcher.