Optimized data submitting