Configure memory slices to use direct memory allocation

Configuring memory slices to use direct memory allocation seems to fix
crashes in the path encryption function. Path encryption uses string
utility functions that internally use memory slices.