---
title: cacheIntermediates
framework: coreimage
role: symbol
role_heading: Type Property
path: coreimage/cicontextoption/cacheintermediates
---

# cacheIntermediates

A Boolean value to control how a Core Image context caches the contents of any intermediate image buffers it uses during rendering.

## Declaration

```swift
static let cacheIntermediates: CIContextOption
```

## Discussion

Discussion If a context caches intermediate buffers, then subsequent renders of a similar image using the same context may be able to render faster. If a context does not cache intermediate buffers, then it may use less memory. If the value for this option is: True: The context will cache intermediate results for future renders using the same context. False: The context will not cache intermediate results. Not specified: the default behavior True. note: This option does affect how /CIImage/imageByInsertingIntermediate behaves. This option does not affect how /CIImage/imageByInsertingIntermediate: behaves.

## See Also

### Type Properties

- [allowLowPower](coreimage/cicontextoption/allowlowpower.md)
- [highQualityDownsample](coreimage/cicontextoption/highqualitydownsample.md)
- [memoryTarget](coreimage/cicontextoption/memorytarget.md)
- [name](coreimage/cicontextoption/name.md)
- [outputColorSpace](coreimage/cicontextoption/outputcolorspace.md)
- [outputPremultiplied](coreimage/cicontextoption/outputpremultiplied.md)
- [priorityRequestLow](coreimage/cicontextoption/priorityrequestlow.md)
- [useSoftwareRenderer](coreimage/cicontextoption/usesoftwarerenderer.md)
- [workingColorSpace](coreimage/cicontextoption/workingcolorspace.md)
- [workingFormat](coreimage/cicontextoption/workingformat.md)
