Is it OK to replace optimized code with readable code?