Managing risk is key to Allan Gray's success