Adding NonSerialized attribute to all cached fields to prevent Unity from serializing them.