LPS-36614 Skip serialization within same jvm for better performance