Reference shortening: performance optimization