[Android] DirectBuffer performance improvements