Server-side STS, performance improvements, and streaming fixes