Just take the 2 reveals and precompose them into another comp. Put a white matte in between to “hold” the alpha and then time reverse the other reveal so that it starts white and fades black.
Then you have a single layer that fades in from black, holds white, then fades out black again. Use this precomp as a track matte for your layer.
Best,
Andrew Kramer