Reduce data being sent by ajax scripts