Memory allocations tuning, fix whitespaces on Android