Optimized

#define for no-memory mode