Write cache and logs to memory in dev environment