improve performance for large application