Cache ref index on load, use cache for calls