terrain_filter caches its unit filter construction