Added Performance improvement by using byte array instead of byte list