Flush the response after writing the headers.
Optimize imports.