Switched to memory mapping wherever applicable