Add perf optimizations for Maemo5