feat: Prevent cache thrashing in class Svg by adding cache parameters/properties. (#3956)