Added wall visibility caching.