Compress types to reduce memory load