Performance enhancement of grid-based applications