Minimize array sizes and fix underterministic behavior for small rl code sizes.