Texas spends nearly $800K on Perry's security detail