Try some flask compression.