Add per-getter caching in Line