Making PDL thread-safe and sharing PDL data across threads