Memory footprint optimizations