Deepstream: FPS issue while saving images in test5 app

Hi, i followed the method for image saving as mentioned in https://devtalk.nvidia.com/default/topic/1063771/deepstream-sdk/uridecodebin-with-filesink/post/5408838/#5408838 issue. But the FPS drops significantly - at least by 10. How can I improve the performance?

Issue opened in https://devtalk.nvidia.com/default/board/209/deepstream-sdk/