Embedded Resource Serialization performance issues.