Memory optimizations for quake tool