Thank you all for your inputs. I finally did create a hidden element and added and array of all parameter values before form is submitted into that hidden element.
After the form is submitted I comparing all the values from this hidden element with the values sent in form and when I find any difference then I am running DB query only for the corresponding parameter. It needed a bit of formatting to make both the array elements in same format and sequence so only difference in parameter values will be caught.