Lazy loading of Compound objects to speed up ccache.get_compound()