optimize the performance of large object