Cook spinach until tender. Grind together onion, garlic, and pepper in a food processor. Add shrimp paste and cook in a little vegetable oil until golden. Combine with remaining ingredients except for coconut milk and puree in blender, adding coconut milk as necessary. Reheat to serve.