moving ram operations to asynchronously writing to disk operations