Before precomposing all of your matte layers , you can combine them using layer blending modes. Try the screen and multiply modes, which will combine blacks and whites respectively.