Optimize dereferencing for loading associations