Refactor crypto init to use existing options variable