Switch to using Java 8's Unsafe.