Currently all MySQL data/API calls are handled by a remote DB cluster (i.e. network latency is a factor in total script execution time).
To reduce execution time in this context, would it be sensible to run a local MySQL instance on each app server to handle mysql_real_escape_string API calls? Has anybody ever done this?