Improving query performance by using parameters instead of literals