Setting default maxmemory to local variable