diff --git a/doc/index.html b/doc/index.html
index e68f0a4..3607545 100644
--- a/doc/index.html
+++ b/doc/index.html
@@ -224,7 +224,7 @@ regular rsa key for greatest compatibility.
Change Log
-- 2019/09/XXX Version 24: Fix crash with "Start on Open" on Android 9. New TV icon.
+
- 2019/09/XXX Version 24: Fix crash with "Start on Open" on Android 9. New TV icon. Slightly faster.
- 2019/09/21 Version 23: Support Android TV.
- 2019/09/01 Version 22: Add broadcast intents for start and stop.
- 2019/08/11 Version 21: Fix restarting after a crash. Fix SIGSEGV on some Android 9 devices.
diff --git a/jni/Android.mk b/jni/Android.mk
index d7cb817..9cb6999 100644
--- a/jni/Android.mk
+++ b/jni/Android.mk
@@ -2,7 +2,7 @@ LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
-LOCAL_CFLAGS :=
+LOCAL_CFLAGS := -O
LOCAL_MODULE := simplesshd-jni
DROPBEAR_PATH := ../dropbear
@@ -485,7 +485,7 @@ include $(BUILD_SHARED_LIBRARY)
include $(CLEAR_VARS)
-LOCAL_CFLAGS := -Wall
+LOCAL_CFLAGS := -Wall -O
LOCAL_MODULE := scp
DROPBEAR_PATH := ../dropbear
@@ -503,7 +503,7 @@ include $(BUILD_EXECUTABLE)
include $(CLEAR_VARS)
-LOCAL_CFLAGS := -Wall
+LOCAL_CFLAGS := -Wall -O
LOCAL_MODULE := sftp-server
OPENSSH_PATH := ../openssh
@@ -533,7 +533,7 @@ include $(BUILD_EXECUTABLE)
include $(CLEAR_VARS)
-LOCAL_CFLAGS := -Wall
+LOCAL_CFLAGS := -Wall -O
LOCAL_MODULE := rsync
RSYNC_PATH := ../rsync
@@ -611,7 +611,7 @@ include $(BUILD_EXECUTABLE)
include $(CLEAR_VARS)
-LOCAL_CFLAGS := -Wall
+LOCAL_CFLAGS := -Wall -O
LOCAL_MODULE := buffersu
LOCAL_SRC_FILES := buffersu.c