DAG Based Context Reasoning: Optimised DAG Creation