Add validation for RAM and virtual memory