make sure imported sec context keys correctly allocated