Five stage pipeline with cache added