Fixes for pyramid stream performance.