Cache result of structured clone support function

Cache result of function call when detecting structured clone support

Cache result of function call when detecting structured clone support