modified MitziBrain to use PositionCache