Optimization and unit test coverage for facet materializers.