Compute anchor value only once
Merge pull request #1926 from fredj/cache-anchor

Compute anchor value only once