use StructKeyArray() instead of listToArray(structKeyList())

Use the more efficient function StructKeyArray()