The work around is fine, since I only wanted to test the performance and throughput degradation when using SSL - and this is possible with the mentioned fix/hack.

That code should never make it out of the sandbox though