Optimize the footprint size