Precompile joi schema. Closes #1566