added cache for column names before we close the cursor