Added logic to reserve cache area for arbitrary code insertion