psoc6: Run flash algorithm asynchronously to improve performance