cache the pipeline for faster processing