Intermediate data storage techniques for performance improvement