Reduce memory footprint and accelerate