Derandomization with Minimal Memory Footprint