Caching references and symbols