adding optimization for large json payload