Cache dir and sql script.