simple-storage api usage to infercsp policy. Need to remove my local variable. Duplication of logic exists