More efficient access to target ids.