reducing peak memory requirements for build cycles