crypto: initialize transform lazily

/cc @isaacs