Optimize compression.